<include file="Public:header"/>
<script type="text/javascript" src="__WEBPUBLIC__/Admin/js/ajax-operate.js"></script>
<!--主页面-->
<div id="main-content" class="content">

    <div class="page-header page-header1 clearfix">
        <h3>申请管理</h3>
        <ul class="nav nav-tabs">
            <li class="active">
                <a>列表</a>
            </li>
        </ul>
    </div>
    <div class="search-content">
        <!--<form action="{:U('Company/companylist')}" method="post" class="search-form form-inline" role="form">
            <div class="form-group">
                <label class="sr-only" for="title">公司名</label>
                <input class="earch-input form-control" id="title" type="text" name="name" value="{$request['name']}" placeholder="公司名"/>　
            </div>
            <button type="submit" class="btn derive">查询</button>
        </form>-->
    </div>
    <div class="content-box-table content-box-content">
        <form action="{:U('Company/companydelete')}" method="post" class="batch-form">
            <table class="table table-striped table-framed table-hover">
                <thead>
                    <tr>
                        <th width="8%">
                            编号
                        </th>
                        <th width="15%">公司名</th>
                        <th>管理人</th>
                        <th>联系电话</th>
                        <th>职位</th>
                        <th>大会标题</th>
                        <th>举办时间</th>
                        <th>当前状态</th>
                        <th width="10%">操作</th>
                    </tr>
                </thead>
                <tbody class="tbody">
                    <if condition="empty($list)">
                        <tr><td colspan="20"><span style="font-size:14px;">暂无数据</span></td></tr>
                    </if>
                    <volist name="list" id="vo">
                        <tr>
                            <td>{$vo['id']}</td>
                            <td>{$vo['name']}</td>
                            
                            <td>{$vo['people']}</td>
                            <td>{$vo['tel']}</td>
                            <td>{$vo['position']}</td>
                            <td>{$vo['title']}</td>
                            <td>{$vo['open_time']}</td>
                            <td>
                                <if condition="$vo['status'] neq 0">
                                已审核
                                <else/>
                                未审核
                                </if>
                            </td>
                            <td>
                                <a title="详情" class="modify" id="{$vo['id']}">
                                    <span class="icon glyphicon glyphicon-edit"></span>
                                </a>&nbsp;
                                
                            </td>
                        </tr>
                    </volist>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="20">
                            <div class="fr">
                                {$page}
                            </div>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>

<script type="text/javascript">
    $(".modify").on('click',function(){
        var id = $(this).attr("id");
        $.ajax({
            type:"post",
            dataType:"json",
            data:{id:id},
            url:"{:U('Meet/mcedit')}",
            success:function( res ){
                alert(res.info);
                if( res.status == 0 ){
                    window.reload();
                }
            }
        })
    });
</script>
<include file="Public:footer"/>